.<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script src="js/vue.js"></script>
	<body>
		<div id="app">
			￥：<input v-model="yuan" type="text"><br />
			$： <input v-model="doller" type="text"><br />
			
		</div>
	</body>
	<script>
		var app = new Vue({
			el:"#app",
			data:{
				yuan:'',
				doller:'',
				
			},

			watch: {
				yuan:{
					immediate:false,
					handler:function(newValue,oldValue){
						
						this.doller = this.yuan*7.0108;
					}
				},
				doller:{
					immediate:false,
					handler:function(newValue,oldValue){
						this.yuan = this.doller*(1/7.0108);
					}
				},
			}
		})
	</script>
</html>